Skip to content

docs: fix documentation gaps identified by full repo audit#662

Closed
cursor[bot] wants to merge 3 commits intomainfrom
cursor/sentry-cli-docs-gaps-3d35
Closed

docs: fix documentation gaps identified by full repo audit#662
cursor[bot] wants to merge 3 commits intomainfrom
cursor/sentry-cli-docs-gaps-3d35

Conversation

@cursor
Copy link
Copy Markdown
Contributor

@cursor cursor bot commented Apr 6, 2026

Summary

Full documentation audit of the Sentry CLI repository, cross-referencing the implementation (src/) against all documentation surfaces (README.md, DEVELOPMENT.md, docs/src/content/docs/, plugins/, script/generate-skill.ts).

Gap Report

The detailed gap report is included in docs/DOCS-GAP-REPORT.md and covers 10 categories:

  • A. Undocumented commands/subcommandsrelease, repo, team missing from README
  • B. Undocumented flags — Minor gaps in sourcemap command docs
  • C. Missing usage examples — Release deploy/delete/deploys subcommands
  • D. Stale descriptions — Minor wording differences (cli feedback)
  • E. Missing skill generator routesrelease and sourcemap not in ROUTE_TO_REFERENCE
  • F. Installation/distribution gaps — Installer flags, Windows support undocumented
  • G. Undocumented environment variablesSENTRY_RELEASE, SENTRY_MAX_PAGINATION_PAGES, SENTRY_CLI_NO_AUTO_REPAIR
  • H. Auth/self-hosted gapsteam:write scope missing from docs
  • I. Plugin/skills gaps — Cursor auto-install not implemented despite docs
  • J. README/DEVELOPMENT.md drift — OAuth scopes, missing commands

Changes (Top 5 Fixes)

  1. script/generate-skill.ts — Added releasereleases and sourcemapsourcemaps to ROUTE_TO_REFERENCE with titles and descriptions in REFERENCE_TITLES and REFERENCE_DESCRIPTIONS

  2. docs/src/content/docs/configuration.md — Added documentation for SENTRY_RELEASE, SENTRY_MAX_PAGINATION_PAGES, and SENTRY_CLI_NO_AUTO_REPAIR environment variables

  3. DEVELOPMENT.md and docs/src/content/docs/self-hosted.md — Added missing team:write to OAuth scopes list (code requests 9 scopes, docs listed only 8)

  4. README.md — Added sentry release, sentry repo, sentry team, sentry trial to the command table; updated sentry issue description to mention events subcommand

  5. docs/src/content/docs/getting-started.mdx — Documented installer --no-modify-path and --no-completions flags for CI/CD environments

  6. docs/src/content/docs/commands/cli.md — Fixed bun install -gbun add -g in detection table; added yarn as a detected install method

Open in Web View Automation 

cursoragent and others added 2 commits April 6, 2026 12:14
Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
- Add release and sourcemap to ROUTE_TO_REFERENCE in skill generator
  with proper titles and descriptions (script/generate-skill.ts)
- Add SENTRY_RELEASE, SENTRY_MAX_PAGINATION_PAGES, and
  SENTRY_CLI_NO_AUTO_REPAIR to configuration.md
- Fix OAuth scopes: add missing team:write to DEVELOPMENT.md and
  self-hosted.md
- Add sentry release, repo, team, trial to README command table
- Document installer --no-modify-path and --no-completions flags
  in getting-started.mdx
- Fix bun install -> bun add in cli.md detection table
- Add yarn to cli.md detection table

Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

Bug Fixes 🐛

Init

  • Rename 'Custom Metrics' feature label to 'Metrics' by MathurAditya724 in #659
  • Add reactFeatures to feature display info by MathurAditya724 in #658
  • Generate spinner messages from payload params instead of server detail by MathurAditya724 in #655

Other

  • (errors) Separate informational notes from actionable alternatives in ContextError by BYK in #651
  • Fix set-commits --auto, document release workflow pitfalls by BYK in #650

Documentation 📚

  • Fix documentation gaps identified by full repo audit by cursor[bot] in #662

Internal Changes 🔧

  • Regenerate skill files and command docs by github-actions[bot] in eb1b19e7

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://cli.sentry.dev/pr-preview/pr-662/

Built to branch gh-pages at 2026-04-06 12:18 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

Codecov Results 📊

134 passed | Total: 134 | Pass Rate: 100% | Execution Time: 0ms

📊 Comparison with Base Branch

Metric Change
Total Tests
Passed Tests
Failed Tests
Skipped Tests

✨ No test changes detected

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 1423 uncovered lines.
✅ Project coverage is 95.55%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    95.54%    95.55%    +0.01%
==========================================
  Files          220       220         —
  Lines        31944     31944         —
  Branches         0         0         —
==========================================
+ Hits         30517     30521        +4
- Misses        1427      1423        -4
- Partials         0         0         —

Generated by Codecov Action

BYK added a commit that referenced this pull request Apr 6, 2026
Replace the three manually-maintained maps (ROUTE_TO_REFERENCE,
REFERENCE_TITLES, REFERENCE_DESCRIPTIONS) with 1:1 route-to-file
mapping that derives titles and descriptions from route metadata.

This matches the strategy used by generate-command-docs.ts and makes
it impossible for new routes to produce degraded skill documentation.

Closes #662
@BYK
Copy link
Copy Markdown
Member

BYK commented Apr 6, 2026

Superseded by #670, which addresses the root cause by eliminating the manual maps in generate-skill.ts entirely. Instead of adding the missing entries and validating completeness, #670 switches to the same 1:1 route-to-file strategy that generate-command-docs.ts uses — making it impossible for new routes to produce degraded documentation.

@BYK BYK closed this Apr 6, 2026
BYK added a commit that referenced this pull request Apr 6, 2026
#670)

## Summary

- Replaces the three manually-maintained maps (`ROUTE_TO_REFERENCE`,
`REFERENCE_TITLES`, `REFERENCE_DESCRIPTIONS`) in `generate-skill.ts`
with 1:1 route-to-file mapping
- Titles and descriptions are now derived from route metadata (`brief`),
matching the strategy used by `generate-command-docs.ts`
- Adding a new route to `app.ts` now automatically produces a
correctly-titled reference file with zero manual steps

## Motivation

PR #662 identified that `release` and `sourcemap` routes had degraded
skill documentation despite the fully automated generation pipeline. The
root cause was that `generate-skill.ts` required manual map updates that
`generate-command-docs.ts` did not — and the silent fallback (`??
route.name`) masked the problem by producing subtly wrong output that
CI's staleness check couldn't distinguish from correct output.

Rather than adding validation on top of the manual maps, this PR
eliminates them entirely so the two generation pipelines share the same
self-healing strategy: one file per visible route, metadata derived from
the route tree.

## Trade-off

Reference files go from 14 (grouped) to 18 (1:1). The 3 former groupings
were: `trace`+`span` → `traces.md`, `team`+`repo` → `teams.md`,
`cli`+`init`+`schema` → `setup.md`. Each route now gets its own file.

Closes #662
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants